﻿using PHMEE.Admin.Application.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PHMEE.Admin
{
    /// <summary>
    /// 
    /// </summary>
    public interface ICollectParaAppService
    {
        /// <summary>
        /// 创建数据
        /// </summary>
        /// <param name="VibChannelList"></param>
        /// <returns></returns>
        Task CreateCollectParameterAsync(List<VibChannelParaCreateDto> VibChannelList);
        ///// <summary>
        ///// 查询VibChannelPara集合根据SysParaId--Form表单双击查看用
        ///// </summary>
        ///// <param name="SysParaId"></param>
        ///// <returns></returns>
        Task<List<VibChannelParaFormDto>> GetBySysCollectParaAsync(Guid SysParaId);
        /// <summary>
        /// 查询单个通道对应的测点
        /// </summary>
        /// <param name="SysParaId"></param>
        /// <param name="chno"></param>
        /// <returns></returns>
        Task<ReturnParaDto> GetByPoint(string collectorCode, int chno);
        /// <summary>
        ///  获取VibChannelPara集合--Mqtt下发时使用
        /// </summary>
        /// <param name="collectorCode">采集器编码</param>
        /// <returns></returns>
        Task<List<VibChannelParaDto>> GetByVibChannelListMqttAsync(string collectorCode);
        /// <summary>
        /// 更新策略参数--编辑用
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task UpdateCollectorAsync(List<VibChannelParaUpdateDto> VibChannelListDto, Guid sysParaId);
    }
}
